package org.dromara.wmscloud.domain.vo;

import org.dromara.wmscloud.domain.BaseSupplier;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 供应商视图对象 base_supplier
 *
 * @author hou
 * @date 2025-04-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseSupplier.class)
public class BaseSupplierVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long supplierId;

    /**
     * 供应商编码
     */
    @ExcelProperty(value = "供应商编码")
    private String supplierCode;

    /**
     * 供应商名称
     */
    @ExcelProperty(value = "供应商名称")
    private String supplierName;

    /**
     * 供货名称
     */
    @ExcelProperty(value = "供货名称")
    private String supplyType;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 联系方式
     */
    @ExcelProperty(value = "联系方式")
    private String contact;

    /**
     * 税号
     */
    @ExcelProperty(value = "税号")
    private String taxNumber;

    /**
     * 开户行
     */
    @ExcelProperty(value = "开户行")
    private String depositBank;

    /**
     * 账号
     */
    @ExcelProperty(value = "账号")
    private String bankAccount;

    /**
     * 是否合格供应商
     */
    @ExcelProperty(value = "是否合格供应商", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String isQualified;

    /**
     * 城市
     */
    @ExcelProperty(value = "城市")
    private String city;

    /**
     * 邮政编码
     */
    @ExcelProperty(value = "邮政编码")
    private String postalCode;


}
